$OpenBSD: patch-Makefile_in,v 1.6 2015/05/20 11:29:58 jca Exp $
--- Makefile.in.orig	Mon May 28 08:15:43 2007
+++ Makefile.in	Wed May 20 13:24:31 2015
@@ -182,7 +182,7 @@ AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
-CFLAGS = -O2 -Wall -g \
+CFLAGS += \
 	-DPATH_HONEYDINCLUDE="\"$(honeydincludedir)\"" \
 	-DPATH_HONEYDDATA="\"$(honeyddatadir)\"" \
 	-DPATH_HONEYDLIB="\"$(honeydlibdir)\"" \
@@ -387,7 +387,7 @@ honeydstats_LDADD = @LIBOBJS@ @DNETLIB@ @EVENTLIB@ @ZL
 honeydstats_CPPFLAGS = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
 	@EVENTINC@ @DNETINC@ @ZINC@
 
-honeydstats_CFLAGS = -O0 -Wall
+honeydstats_CFLAGS =
 
 #
 # Honeyd stats sniffer
@@ -408,7 +408,7 @@ hsniff_CFLAGS = -O2 -Wall -DPATH_HONEYDDATA="\"$(honey
 honeydctl_SOURCES = honeydctl.c
 honeydctl_LDADD = @LIBOBJS@ @EDITLIB@ @LIBCURSES@
 honeydctl_CPPFLAGS = @EDITINC@
-honeydctl_CFLAGS = -O2 -Wall
+honeydctl_CFLAGS =
 INCLUDES = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
 	@PYTHONINC@ @EVENTINC@ @PCAPINC@ @DNETINC@ @ZINC@
 
@@ -423,7 +423,7 @@ smtp_LDADD = @LIBOBJS@ @EVENTLIB@ @DNETLIB@ @PCAPLIB@ 
 smtp_CPPFLAGS = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
 	@EVENTINC@ @DNETINC@ @PCREINC@
 
-smtp_CFLAGS = -O2 -Wall
+smtp_CFLAGS =
 proxy_SOURCES = subsystems/proxy.c subsystems/proxy.h subsystems/proxy_main.c \
 	subsystems/proxy_messages.h subsystems/smtp.c subsystems/smtp.h \
 	subsystems/smtp_messages.h atomicio.c \
@@ -433,7 +433,7 @@ proxy_LDADD = @LIBOBJS@ @EVENTLIB@ @DNETLIB@ @PCAPLIB@
 proxy_CPPFLAGS = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
 	@EVENTINC@ @DNETINC@ @PCREINC@
 
-proxy_CFLAGS = -O2 -Wall
+proxy_CFLAGS =
 
 ########################################################################
 ########################################################################
@@ -1411,7 +1411,7 @@ uninstall-man: uninstall-man1 uninstall-man8
 libhoneyd.so: $(LIBHONEYDFILES)
 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la \
 		-rpath $(libdir)/honeyd $(LIBHONEYDFILES) $(LIBS) $(LDFLAGS) \
-		-module -avoid-version -nostdlib @LIBDL@
+		-module -avoid-version @LIBDL@
 	rm -f libtmp$@.la tmp$@.so* $@
 	cp .libs/libtmp$@.so $@ || cp .libs/libtmp$@ $@
 	rm -f .libs/libtmp$@.*
